

<template>
  <div class="child">
    <h2>child</h2>
    <h4>sum: {{ sum }}</h4>
  </div>

</template>

<script setup lang="ts" name="Child">
  import { ref} from 'vue';
  import axios from 'axios'
  let sum = ref(0)
  // let xx = await axios.get('https://api.uomg.com/api/rand.qinghua?format=json')
  // console.log(xx)
  let {data:content} = await axios.get('https://api.uomg.com/api/rand.qinghua?format=json')
  console.log(content)

</script>

<style scoped>
.child {
  background-color: skyblue;

}

</style>
